package com.example.clxy.service;

import com.example.clxy.entity.User;
import com.example.clxy.entity.dto.LoginUserDto;
import com.example.clxy.result.PageResult;
import com.example.clxy.result.WebRestResult;
import com.example.clxy.result.business.PageResult.UserPageResult;
import com.example.clxy.result.business.UserAccountResult;
import com.example.clxy.result.business.UserResult;

/**
 * @Author liuhaoqi
 * @Date 2020/8/3 20:41
 * @Version 1.0
 */
public interface UserService {

    UserResult loginWeb(String account, String password,String usertype);

    PageResult<UserPageResult> getUserList(String roleid, String teacherid, String teachername, String grade, String classid, String studentname, String studentid, int page, int pagesize);

    WebRestResult updateUser( User user);

    WebRestResult deleteUserByUseridList(String[] useridList);

    WebRestResult addUser( User user);

    WebRestResult resetPassword(String account);

    WebRestResult updatePassword(String account, String password,String newpassword);

    UserResult loginUser(String code);

    UserAccountResult getUserInfoByAccount(String account);

    UserResult wxBindUser(LoginUserDto loginUserDto);

    PageResult<UserPageResult> getWxBindList(int page, int pagesize, String roleid, String username, String account);
}
